<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>微信接口配置</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<style type="text/css">
#clic {
	color: #090;
}
.set {
	font-weight: bold;
}
.ft {
	color: #F60;
}
</style>
<script type="text/javascript" src="js/calendar/calendar.js"></script>
</head>
<body background="images/allbg.gif" leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
    <td height="28" background="images/tbg.gif" style="padding-left:10px;">&nbsp;<b>微信接口配置</b> </td>
  </tr>
  <tr>
    <td height="200" bgcolor="#FFFFFF" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="2">
        <form action="weixin.php" method="post" enctype="multipart/form-data" name="form1">
          <input type='hidden' name='id' value='<?php echo $id?>'>
          <input type='hidden' name='dopost' value='saveedit'>
          <tr>
            <td width="10%" height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap" class="set">第一步</td>
            <td width="25%" rowspan="15" valign="top"><p style="border-left:1px dotted #666; padding:0 10px; margin:0; height:580px;"><b>使利用DEDE建立3G微网站</b></br><span style="text-indent:2em; line-height:20px;">
</br>接口插件安装后，会自动建立一个名为微信网站的栏目，您的3G网站的首页模板，可以在此栏目指定，其目录为http://www.xxxx.com/weixin下。您只需制作相应的模板和制作相关的栏目分类就可以了。<br /></br>
<b>如何配置关注回复</b></br></br>

关注时回复的内容，你需要在栏目中建立一个名为“关注时回复”的栏目，并为该栏目添加文档，就可以了。可以是多条，但最多向用户回复10条图文信息。
<br />
更多其它问题，请访问红瓦屋官方网站：<br /></br>
<a href="http://www.hongwawu.net/news/gsdt121.html" target="_blank">http://www.hongwawu.net</a> <br />
<a href="http://www.hongwawu.com" target="_blank">http://www.hongwawu.com</a> <br />
<a href="http://www.hongwawu.cn" target="_blank">http://www.hongwawu.cn</a><br />
<br />
QQ号：54559250<br />
手机：18602860068<br />
电话：028-61511487<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;400-5161-487
</span></p></td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">设置TOKEN：</td>
            <td nowrap="nowrap"><input name="TOKEN" type="text" id="TOKEN" size="30" class='iptxt' value="<?php echo $row['TOKEN']; ?>" /></td>
            <td colspan="2" align="left">首先设置好TOKEN密钥，然后<a href="http://mp.weixin.qq.com" target="_blank" class="set"> 登录微信公众平台</a></td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">你的TOKEN_URL：</td>
            <td width="17%" nowrap="nowrap"><input name="url" type="hidden" class='iptxt' id="url" value="<?php echo $row['url']; ?>" size="30" /><span class="ft"><?php echo "http://".$_SERVER['HTTP_HOST'].$row['url']; ?></span></td>
            <td colspan="2" align="left">进入公众平台申请成为开发者填写这里的TOKEN和TOKEN_URL</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap" class="set">第二步</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">AppId：</td>
            <td nowrap="nowrap"><input name="AppId" type="text" id="AppId" size="30" class='iptxt' value="<?php echo $row['AppId']; ?>"/>              <br></td>
            <td width="6%" align="right">AppSecret：</td>
            <td width="42%" nowrap="nowrap"><input name="AppSecret" type="text" id="AppSecret" size="30" class='iptxt' value="<?php echo $row['AppSecret']; ?>"/></td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap"><span class="ft">成为开发者后将公众平台得到的开发者凭证AppID和AppSecret值填写好后，点击：
            </span>              <input type="submit" name="button" id="button" value="  保存  " /></td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap" class="set">第三步</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">ACCESS_TOKEN：</td>
            <td colspan="3" nowrap="nowrap"><textarea name="ACCESS_TOKEN" rows="1" id="ACCESS_TOKEN" style="width:85%;"><?php echo $row['ACCESS_TOKEN']; ?></textarea></td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap">获取ACCESS_TOKEN值.&nbsp;&nbsp;(<a href="weixin.php?action=do&amp;appid=<?php echo $row['AppId']; ?>&amp;secret=<?php echo $row['AppSecret']; ?>" target="_self" id="clic"><strong>点击获取</strong></a>)</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap" class="ft">ACCESS_TOKEN值的有效期为2小时,必须在获取到ACCESS_TOKEN后在2小时内生成菜单,超过2小时需重新获取</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap" class="set">第四步</td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">智能回复数量：</td>
            <td nowrap="nowrap"><input name="searchrx" type="text" class='iptxt' id="searchrx" value="<?php echo $row['searchrx']; ?>" size="16" /> 
            条 （最多10条）            <br></td>
            <td align="right" nowrap="nowrap">菜单回复数量：</td>
            <td nowrap="nowrap"><input name="menurx" type="text" class='iptxt' id="menurx" value="<?php echo $row['menurx']; ?>" size="16" />
             条 （最多10条）            </td>
          </tr>
          <tr>
            <td height="25" align="right" nowrap="nowrap">&nbsp;</td>
            <td colspan="3" nowrap="nowrap"><span class="ft">智能回复数量：</span>表示用户发送内容时平台自动从文章中（模糊匹配）找出相关内容，并以图文方式回复给用户<br />
            <span class="ft">菜单回复数量：</span>表示用户点击菜单时，向用户以图文方式回复的数量（精确匹配）</td>
          </tr>
          <tr>
            <td height="30" align="right" nowrap="nowrap">无匹配时的回复：</td>
            <td colspan="3"><textarea name="msg" rows="1" id="msg" style="width:85%;"><?php echo $row['msg']; ?></textarea></td>
          </tr>
          <tr>
            <td height="53" align="center" nowrap="nowrap">&nbsp;</td>
            <td><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0"></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
</body>
</html>